package org.gientech.learnsen.model;

import com.github.jsonzou.jmockdata.JMockData;
import com.github.jsonzou.jmockdata.MockConfig;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class Book {
    private String bookNo;
    private String bookName;
    private Double price;


    public static Book create() {
        Book book = new Book();
        book.bookNo = JMockData.mock(String.class);
        book.bookName = JMockData.mock(String.class);
        book.price = JMockData.mock(Double.class,new MockConfig().dateRange("1","300"));
        return book;
    }

}

